module.exports = {
  secondToStr: function(second) {
    var m = parseInt(second / 60)
    var s = parseInt(second - m * 60)
    return m + ':' + (s >= 10 ? s : '0' + s)
  },
  strToSecond: function(str) {
    var strs = str.split(':')
    return 60 * strs[0] + strs[1] * 1
  },
  isEmpty: function(v) {
    return v === null || v === undefined || v.trim() === ''
  }
}
